﻿<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" lang="EN" dir="ltr">
<head profile="http://gmpg.org/xfn/11">
<title>AIS開発稟議書　GAEサンプル</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="imagetoolbar" content="no" />
<meta http-equiv="Content-Language" content="ja" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />

<link rel="stylesheet" href="../styles/layout.css" type="text/css" />
<link type="text/css" href="../styles/jquery-ui-1.7.3.custom.css" rel="stylesheet">
<link type="text/css" href="../styles/uniform.default.css" media="screen" charset="utf-8" rel="stylesheet" />
<link type="text/css" href="../styles/formlayout.css" media="screen" charset="utf-8" rel="stylesheet" />
<link type="text/css" href="../styles/exvalidation.css" rel="stylesheet" />

<script type="text/javascript" src="scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="scripts/jquery.slidepanel.setup.js"></script>
<script type="text/javascript" src="scripts/jquery.cycle.min.js"></script>
<!--<script type="text/javascript" src="scripts/jquery.cycle.setup.js"></script>-->
<script type="text/javascript" src="scripts/jquery.MultiFile.js"></script>
<script type="text/javascript" src="scripts/jquery.MultiFile.pack.js"></script>
<!-- ADD -->
<script type="text/javascript" src="scripts/jquery.js"></script> 
<script type="text/javascript" src="scripts/top_up.js"></script>
<script type="text/javascript" src="scripts/ui.datepicker-ja.js"></script>
<script type="text/javascript" src="scripts/jquery.uniform.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.7.3.custom.min.js"></script>
<script type="text/javascript" src="scripts/exvalidation.js"></script>
<script type="text/javascript" src="scripts/exchecker-ja.js"></script>
<script type = "text/javascript" src="scripts/jquery.upload-1.0.2.js"></script>

<!-- CSS -->
<style type="text/css">
     #demo a img { vertical-align:middle; }
     body {
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        color: #666;
        padding: 40px;
      }
	h2 {
		border-bottom: solid 1px #66b2ff; 
		border-left: solid 8px #66b2ff; 
		font-size:1.45em; 
		text-indent: 0.5em; 
		text-align:left;
		color :#696969;
		background-color:#faf0e6;
	}

</style>
<script type="text/javascript">
jQuery(function($){
  var validation = $("form")
    .exValidation({
      rules: {
        form_confirm_author_title: "chkrequired",
        kana: "chkrequired chkkatakana",
        email: "chirequired chkemail chkhankaku chkgroup domain",
        pass: "chkrequired chkmin6 chkmax12",
        repass: "chkrequired chkretype-pass",
        radio: "chkradio",
        checkbox: "chkcheckbox",
        birthday: "chkgroup date",
        pref: "chkselect",
        form_complete_contact_date: "date",
        form_confirm_date: "date",
        form_operation_date: "date",
        form_estimate_contact_date: "date",
        message: "chkmax140"
    },
    errInsertPos: 'after',
    errPosition: 'fixed'
  });
});

function del(){
	if(confirm("本当に削除してよろしいですか？")){
	    form1.action="/deleteOrder?order_number=" + document.form1.form_order_number_1.value;
    	form1.submit();
	}
}
</script>
<script type="text/javascript" charset="utf-8">
jQuery(function($){
	$("#form_complete_contact_date").datepicker();
	$("#form_confirm_date").datepicker();
	$("#form_operation_date").datepicker();
	$("#form_estimate_contact_date").datepicker();
});
</script>
</head>
<body onload="init()">
<table border="0" align="center" cellpadding="1" cellspacing="0" style="width:1024">

  <tr>
    <td align="center"><p><h1>AIS開発依頼書</h1></p>
<form id="form1" name="form1" method="post" enctype="multipart/form-data" action="/create_new_detail">
<table>
          <tr>
            <td width="300"><h3>依頼書No:{{ order_number }}</h3><input type="hidden" name="form_order_number" value="{{ order_number }}"/></td>
            <td><h3>プロジェクトコード:<input type="text" class="text" name="projectcode" id="projectcode" value= "{{ order_number }}" /></h3>
            </td>
          </tr>
</table>
        <table id="orderNumber" border="0" align="left" cellpadding="1" cellspacing="0" class="headtable">
<tr><td align="left">
            <input type="hidden" name="form_order_number_1" value="{{ order_number }}"/></td>
            <input type="submit" class="submit" name="btnNewUp" id="btnNewUp" value="変更登録" />
            <input type="submit" class="submit" name="create_new_detail" id="create_new_detail" value="保存" />
            <input type="submit" class="submit" name="btncopy" id="btncopy" value="リンクコピー" />
      	<input type="button" name="btnDelete" id="btnDelete" class="submit" value="削除" onclick="del()" />
      	<input type="button" name="btnprint" id="btnprint" class="submit" value="印刷" onclick="" />
            <input type="button" class="submit" name="backbutton" id="backbutton" value="戻る" onclick="location.href='/'" onkeypress="location.href='/'" />
</td>
</tr>
        </table>
        <table id="table_exp" width="85%" border="0" cellspacing="0" cellpadding="1">
          <tr>
            <td height="1280" align="center"><table width="100%" border="1" cellspacing="0" cellpadding="1">
              <thead> 
              <tr>
                <th width="7%" height="51" class="title">&nbsp;</td>
                <th width="18%" align="center" class="title">V開発完了</th>
                <th width="18%" align="center" class="title">IV見積承認</th>
                <th width="18%" align="center" class="title">IIIｵﾍﾟﾚｰｼｮﾝ審議</th>
                <th width="18%" align="center" class="title">II見積連絡</th>
                <th colspan=2 width="21%" align="center" class="title">I開発依頼</th>
              </tr>
              </thead>
              <tbody> 
              <tr>
                <td align="center" class="title">部署</td>
                <td>
                  <input name="form_complete_contact_dept" type="text" class="text required" style="width:100%" id="form_complete_contact_dept" value= "{{ complete_contact_dept }}" />
                </td>
                <td>
                  <input type="text" class="text" style="width:100%" name="form_confirm_dept" id="form_confirm_dept" value= "{{ confirm_dept }}" />
                </td>
                <td>
                  <input type="text" class="text" style="width:100%" name="form_operation_dept" id="form_operation_dept" value= "{{ operation_dept }}" /></td>
                <td>
                  <input type="text" class="text" style="width:100%" name="form_estimate_contact_dept" id="form_estimate_contact_dept" value= "{{ estimate_contact_dept }}" /></td>
                <td colspan=2>
                  <input type="text" class="text" style="width:100%" name="form_order_dept" id="form_order_dept" value= "{{ order_dept }}" /></td>
              </tr>
              <tr>
                <td align="center" class="title">職名</td>
                <td>
                  <input name="form_complete_contact_author_title" type="text" class="text" style="width:100%" id="form_complete_contact_author_title" value= "{{ complete_contact_author_title }}" />
                </td>
                <td>
                  <input type="text" class="text" style="width:100%" name="form_confirm_author_title" id="form_confirm_author_title" value= "{{ confirm_author_title }}" />
                </td>
                <td>
                  <input type="text" class="text" style="width:100%" name="form_operation_author_title" id="form_operation_author_title" value= "{{ operation_author_title }}" /></td>
                <td>
                  <input type="text" class="text" style="width:100%" name="form_estimate_contact_author_title" id="form_estimate_contact_author_title" value= "{{ estimate_contact_author_title }}" /></td>
                <td colspan=2>
                  <input type="text" class="text" style="width:100%" name="form_order_author_title" id="form_order_author_title" value= "{{ order_author_title }}" /></td>
              </tr>
              <tr>
                <td align="center" class="title">氏名</td>
                <td>
                  <input name="form_complete_contact_author" type="text" class="text" style="width:100%" id="form_complete_contact_author" value= "{{ complete_contact_author }}" />
                </td>
                <td>
                  <input type="text" class="text" style="width:100%" name="form_confirm_author" id="form_confirm_author" value= "{{ confirm_author }}" />
                </td>
                <td>
                  <input type="text" class="text" style="width:100%" name="form_operation_author" id="form_operation_author" value= "{{ operation_author }}" /></td>
                <td>
                  <input type="text" class="text" style="width:100%" name="form_estimate_contact_author" id="form_estimate_contact_author" value= "{{ estimate_contact_author }}" /></td>
                {% ifequal order_number "create_new" %}
                <td>
                  <input type="text" class="text" style="width:100%" name="form_order_author" value="{{ order_author }}" style="width:100%"/></td>
                {% else %}
                <td><label>{{ order_author }}</label>
                  <input type="hidden" name="form_order_author" value="{{ order_author }}"/></td>
                {% endifequal %}
              </tr>
              <tr>
                <td align="center" class="title">日付</td>
                <td>
                  <input id="form_complete_contact_date" name="form_complete_contact_date" type="text" class="text" style="width:100%" id="form_complete_contact_date" value="{{ complete_contact_date|date:"Y-m-d H:i:s" }}"/></td>
                <td>
                  <input id="form_confirm_date" type="text" class="text" style="width:100%" name="form_confirm_date" id="form_confirm_date" value="{{ confirm_date|date:"Y-m-d H:i:s" }}"/></td>
                <td>
                  <input id="form_operation_date" type="text" class="text" style="width:100%" name="form_operation_date" id="form_operation_date" value="{{ operation_date|date:"Y-m-d H:i:s" }}"/></td>
                <td>
                  <input id="form_estimate_contact_date" type="text" class="text" style="width:100%" name="form_estimate_contact_date" id="form_estimate_contact_date" value="{{ contact_date|date:"Y-m-d H:i:s" }}"/></td>
                {% ifequal order_number "create_new" %}
                <td>
                  <input id="form_order_date" type="text" class="text" style="width:100%" name="form_order_date" value="{{ order_date|date:"Y-m-d H:i:s" }}" style="width:100%"/></td>
                {% else %}
                <td><label style="font-size:12">{{ order_date|date:"Y-m-d H:i:s" }}</label>
                  <input type="hidden" id="form_order_date" name="form_order_date" value="{{ order_date|date:"Y-m-d H:i:s" }}"/></td>
                {% endifequal %}
              </tr>
              </tbody> 
            </table>
            <br>
            <table width="100%" border="1" cellspacing="0" cellpadding="1">
              <tr>
                <td width="25%" height="20">決裁通知</td>
                <td width="18%">&nbsp;</td>
                <td width="57%">&nbsp;</td>
              </tr>
            </table>
            <p>
                <h2>I．立案</h2>
            </p>
            <table width="100%" border="1" cellspacing="0" cellpadding="1">
              <tr>
                <td colspan="2" class="title">１．企業情報</td>
                </tr>
              <tr>
                <td width="25%">企業コード</td>
                <td width="75%">{{ company_code }}</td>
              </tr>
              <tr>
                <td>企業名</td>
                <td>{{ company_name }}</td>
              </tr>
              <tr>
                <td>業態</td>
                <td>
                	<P id=checkbox>
                	<table>
                		<tr>
		                	<td width="50%"><input type="checkbox" name="business_conditions" value="0">Cv.S.</input></td>
							<td><input type="checkbox" name="business_conditions" value="1">Books/CD</input>
							{#{% if "0" in business_conditions %}#}
								<!-- <b>111</b> -->
							{#{% endif %}#}
							</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="business_conditions" value="2">S.M.</input></td>
							<td><input type="checkbox" name="business_conditions" value="3">One price store</input></td>
						</tr>
						<tr>
							<td><input type="checkbox" name="business_conditions" value="4">H.C./D.S.</input></td>
							<td><input type="checkbox" name="business_conditions" value="5">Apparel</input></td>
						</tr>
						<tr>
							<td><input type="checkbox" name="business_conditions" value="6">Dg.S.</input></td>
							<td><input type="checkbox" name="business_conditions" value="7">Others(S.S.)</input></td>
						</tr>
						<tr>
							<td><input type="checkbox" name="business_conditions" value="8">Su.C./G.M.S./Dept.</input></td>
							<td><input type="checkbox" name="business_conditions" value="9">New Service</input></td>
						</tr></table></P>
				</td>
              </tr>
              <tr>
                <td>棚卸方法</td>
                <td>
                	<table>
                		<tr>               			
		                	<td width="50%"><input type="checkbox" name="stocktaking_methods" value="0">RETAIL</input></td>
							<td><input type="checkbox" name="stocktaking_methods" value="1">SKU</input></td>
						</tr>
						<tr>
							<td><input type="checkbox" name="stocktaking_methods" value="2">SKU/RETAIL</input></td>
							<td><input type="checkbox" name="stocktaking_methods" value="3">BOOKS</input></td>
						</tr>
						<tr>
							<td><input type="checkbox" name="stocktaking_methods" value="4">RETAIL（Books売価ｽｷｬﾝ）</input></td>
							<td></td>
						</tr></table></td>
              </tr>
              <tr>
                <td colspan="2">２．開発依頼内容</td>
                </tr>
              <tr>
                <td>種別</td>
                <td>
                	<input type="radio" name="classification" value="0" checked>プログラム開発案件</br>
                	<input type="radio" name="classification" value="1"　>クライアントマスタ新規</br>
                	<input type="radio" name="classification" value="2"　>クライアントマスタ修正（パラメータ変更あり）</br>
                	<input type="radio" name="classification" value="3"　>クライアントマスタ新規（パラメータ変更なし）</br>
                	<input type="radio" name="classification" value="4"　>その他（各種マスタ変換・データ処理）</br>
                	<label for="" style="font-size:12">&nbsp;※プログラム開発の必要有無が判断できない場合は「プログラム開発案件」としてください。</label>
                </td>
              </tr>
              <tr>
                <td>内容</td>
                <td><textArea name="content" rows="20" style="width:100%">{{ content }}</textArea></td>
              </tr>
              <tr>
                <td>効果</td>
                <td><textArea name="effective" rows="5" style="width:100%">{{ effective }}</textArea></td>
              </tr>
              <tr>
                <td colspan="2" class="title">３．添付資料</td>
                </tr>
              <tr>
                <td colspan="2">
		        <ul>
		            {% for file in files %}
		            	<li><a href="/serve/{{ file.foo }}" target="_blank">{{ file.bar }}</a></lI>
		            {% endfor %}
		        </ul>
                </td>
              </tr>
              <tr>
                <td colspan="2" class="title">４．実施情報</td>
                </tr>
              <tr>
                <td>納品希望日</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>棚卸実施日</td>
                <td>&nbsp;</td>
              </tr>
            </table>
            <p>
                <h2>II．見積連絡</h2>
            </p>
            <table width="100%" border="1" cellspacing="0" cellpadding="1">
            <tr>
           <td align="left"><input type="submit" class="submit" name="calc" id="calc" value="見積算出" /></td></tr>
              <tr>
                <td width="25%">見積担当者</td>
                <td width="75%">&nbsp;</td>
              </tr>
              <tr>
                <td>プログラム有無</td>
                <td>
                	<input type="radio" name="need_program" value="0" checked>有
                	<input type="radio" name="need_program" value="1"　>無&nbsp;&nbsp;
                	<label for="" style="font-size:12;color:#ff8c00">（↓Pなしの場合は全て「その他作業」で時間記入）</label>
				</td>
              </tr>
              <tr>
                <td>見積工数</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>見積金額</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>納品予定日</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>コメント</td>
                <td>&nbsp;</td>
              </tr>
            </table>
            <p>
                <h2>III．オペレーション審議</h2>
            </p>
            <table width="100%" border="1" cellspacing="0" cellpadding="1">
              <tr>
                <td height="50">&nbsp;</td>
                </tr>
            </table>
            <p>
                <h2>IV．見積承認</h2>
            </p>
            <table width="100%" border="1" cellspacing="0" cellpadding="1">
              <tr>
                <td height="58">&nbsp;</td>
              </tr>
            </table>
            <p>
                <h2>V．開発完了</h2>
            </p>
            <table width="100%" border="1" cellspacing="0" cellpadding="1">
              <tr>
                <td colspan="2" class="title">１．開発</td>
                </tr>
              <tr>
                <td width="25%">商談同行SE</td>
                <td width="75%">&nbsp;</td>
              </tr>
              <tr>
                <td>開発担当SE</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>開発担当PG</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>開発完了</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td colspan="2" class="title">２．検収</td>
                </tr>
              <tr>
                <td>導入開始月</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
              <tr>
                <td>コメント</td><td></td>
              </tr>
            </table></td>
          </tr>
        </table>
            <p>
                <h2>Ⅵ．履歴</h2>
            </p>
            <table width="100%" border="1" cellspacing="0" cellpadding="1">
              <tr>
                <td>
                	<a href="#" onClick="">20120120001</a>
                	<a href="#" onClick="">20120120002</a>
				</td>
                </tr>
              <tr>
</tr>
</table>
      </form>
  </tr>
</table>
<script language="JavaScript">
function init() {
	var chk_bc = document.getElementsByName("business_conditions");
	{% for business_condition in business_conditions %}
		chk_bc[{{business_condition}}].checked = true;
	{% endfor %}

	var chk_sm = document.getElementsByName("stocktaking_methods");
	{% for stocktaking_method in stocktaking_methods %}
		chk_sm[{{stocktaking_method}}].checked = true;
	{% endfor %}
	
	var rdo_sm = document.getElementsByName("classification");
	rdo_sm[{{classification}}].checked = true;

	var rdo_np = document.getElementsByName("need_program");
	rdo_np[{{need_program}}].checked = true;
}
</script>
</body>
</html>
